package com.zynn.service.module.calculate.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.zynn.service.module.calculate.dao.EventsMapper;
import com.zynn.service.module.calculate.entity.Events;
import com.zynn.service.module.calculate.service.EventsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 *@ClassName EventsServiceImpl
 *@Description TODO
 *@Author 刘猛
 *@Date 2018/10/30 17:15
 **/
@Service
@Slf4j
public class EventsServiceImpl extends ServiceImpl<EventsMapper, Events> implements EventsService {
    @Autowired
    EventsMapper mapper;

    @Override
    public List<Map<String, Object>> getEventOnceUpGroups() {
        return mapper.getEventOnceUpGroups();
    }

    @Override
    public List<Map<String, Object>> likesUpThree() {
        return mapper.likesUpThree();
    }

    @Override
    public List<Map<String, Object>> snsLikesUpThree() {
        return mapper.snsLikesUpThree();
    }

    @Override
    public void groupCaheSave(Map<String, Object> params) {
        mapper.groupCaheSave(params);
    }

    @Override
    public void deleteGroupPushCacheDataToday() {
        mapper.deleteGroupPushCacheDataToday();
    }

    @Override
    public List<Map<String,Object>> newEmptyGroup() {
        return mapper.newEmptyGroup();
    }
}
